package com.ly.service.impl;

import com.ly.dao.UserDao;
import com.ly.model.User;
import com.ly.service.UserService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service("userService")
public class UserServiceImpl implements UserService {
    @Resource
    private UserDao userDao;

    public User selectUserByUserName(String username) {
        return userDao.selectUserByUserName(username);
    }

    public boolean insertUser(User user) {
        return userDao.insertUser(user);
    }

    public boolean delUser(User user){
        return userDao.delUser(user);
    }
}
